package com.zhouyu.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

@Component
public class OrderService implements DisposableBean {

	public void order(){
		System.out.println("init order method");
	}

	@Override
	public void destroy() throws Exception {
		System.out.println("OrderService is destroy!");
	}

	@PreDestroy
	public void preDestroy()
	{
		System.out.println("OrderService is preDestroy!");
	}

	public void myDestroy(){
		System.out.println("OrderService is myDestroy!");
	}

}
